local skel = fk.CreateSkill {
  name = "emo__youjijb",
  tags = {Skill.Hidden},
}

Fk:loadTranslationTable{
  ["emo__youjijb"] = "游击军备",
  [":emo__youjijb"] = "隐匿。一名角色的回合结束时，若你未使用牌且未成为牌目标，则你摸两张牌，隐匿。",

  ["$emo__youjijb1"] = "整装待发。",
  ["$emo__youjijb2"] = "正在报告。",
  ["$emo__youjijb3"] = "有情况。",
}

local DIY = require "packages.diy_utility.diy_utility"

skel:addEffect(fk.TurnEnd, {
  anim_type = "drawcard",
  can_trigger = function (self, event, target, player, data)
    if not player:hasSkill(skel.name) then return false end
    return #player.room.logic:getEventsOfScope(GameEvent.UseCard, 1, function(e)
      local use = e.data
      return use.from == player or (use.tos and table.contains(use.tos, player))
    end, Player.HistoryTurn) == 0
  end,
  on_cost = Util.TrueFunc,
  on_use = function (self, event, target, player, data)
    player:drawCards(2, skel.name)
    DIY.enterHidden(player)
  end,
})

return skel
